package jbilling

import javax.jws.WebParam;

import com.metaregistrar.jbilling.webservice.CustomerResponseWS;
import com.metaregistrar.jbilling.webservice.ICustomerWebservice;
import com.metaregistrar.jbilling.webservice.ParamWS;

class CustomerService implements ICustomerWebservice{

	def ICustomerWebservice mtrgcustomerwebservice
	static transactional = true // here we start transaction 'CustomerService'
	static expose = [
		'hessian',
		'cxfjax',
		'httpinvoker'
	]

	public CustomerResponseWS findCustomerByUserNameAndEntity(
			String username, Integer entityId) {
		return mtrgcustomerwebservice.findCustomerByUserNameAndEntity(username, entityId);
	}

	public CustomerResponseWS createNewCustomer(ParamWS params) {
		return mtrgcustomerwebservice.createNewCustomer(params);
	}

}
